/* 弹框 */

.layer {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.3);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layer-container {
    width: 400px;
    height: 300px;
    background-color: #726f6f;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.layer-title {
    height: 40px;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    align-items: center;
    font-size: 15px;
    background-color: #726f6f;
}

.layer-content {
    line-height: 24px;
    padding: 10px;
    font-size: 14px;
    color: #ececec;
    flex: 1;
    background-color: #444444;
}

.layer-tools {
    padding: 10px;
    text-align: right;
}

.layer-button {
    height: 28px;
    line-height: 28px;
    margin: 5px 5px 0;
    padding: 0 15px;
    border: 1px solid #dedede;
    background-color: #444444;
    color: #e5e5e5;
    border-radius: 2px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

.layer-button:hover {
    opacity: 0.8;
}

.animate {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

.layerAnimate {
    animation-name: layerAnimate;
}

@keyframes layerAnimate {
    from {
        opacity: 0;
        transform: translate3d(0, 10%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

